<template>
    <div class="home-one">
        <el-table :data="tableData" style="width: 100%">
            <el-table-column prop="date2" label="审核状态" min-width="100">
                <template slot-scope="scope">
                    <span @click="changeStatus">{{scope.row.date2}}</span>
                </template>
            </el-table-column>
            <el-table-column prop="date" label="序号" min-width="100"></el-table-column>
            <el-table-column prop="date" label="保修时间" min-width="100"></el-table-column>
            <el-table-column prop="date" label="报修人" min-width="100"></el-table-column>
            <el-table-column prop="date" label="室内室外" min-width="100"></el-table-column>
            <el-table-column prop="date" label="位置" min-width="100"></el-table-column>
            <el-table-column prop="date" label="类型" min-width="100"></el-table-column>
            <el-table-column prop="date" label="处理时间" min-width="100"></el-table-column>
            <el-table-column prop="date" label="操作" min-width="200">
                <el-button @click="edit" size="mini" type="primary">编辑</el-button>
                <el-button size="mini" type="danger">删除</el-button>
            </el-table-column>
        </el-table>

        <el-dialog title="审核状态" :visible.sync="dialogVisible" width="60%">
            <div style="height: 300px;">
                <el-steps direction="vertical" :active="1">
                    <el-step title="步骤 1"></el-step>
                    <el-step title="步骤 2"></el-step>
                    <el-step title="步骤 3" description="这是一段很长很长很长的描述性文字"></el-step>
                </el-steps>
            </div>
        </el-dialog>
        <el-dialog title="编辑" :visible.sync="dialogVisible2" width="50%">
          <el-form ref="form" :model="form" label-width="80px">
            <el-form-item label="保修人">
                <el-input v-model="form.name"></el-input>
            </el-form-item>
            <el-form-item label="位置">
                <el-input v-model="form.name"></el-input>
            </el-form-item>
            </el-form>
        </el-dialog>
    </div>
</template>

<script>
export default {
    name: "homeOne",
    data() {
        return {
            dialogVisible: false,
            dialogVisible2: false,
            tableData: [
                {
                    date: 1,
                    date2: "审核中"
                }
            ],
            form:{
              name:"",
            }
        };
    },
    methods: {
        changeStatus() {
            this.dialogVisible = true;
        },
        edit() {
            this.dialogVisible2 = true;
        }
    }
};
</script>
<style lang="less" scoped>
</style>
